package edu.nuc.projdemo.sys.services.impl;

import java.util.List;

import edu.nuc.projdemo.common.PageControl;
import edu.nuc.projdemo.common.Pager;
import edu.nuc.projdemo.model.SysFunction;
import edu.nuc.projdemo.model.Sysrole;
import edu.nuc.projdemo.sys.dao.impl.RoleDao;
import edu.nuc.projdemo.sys.dao.interfaces.IRoleDao;
import edu.nuc.projdemo.sys.services.interfaces.IRoleService;

public class RoleService implements IRoleService {

	IRoleDao dao = new RoleDao();
	
	public Pager<Sysrole> list(Sysrole role, PageControl pc) {
		return dao.list(role, pc);
	}

	public Integer add(Sysrole role) {
		return dao.add(role);
	}

	public List<SysFunction> initfunlist(Sysrole role) {
		return dao.initfunlist(role);
	}

	public Sysrole detail(Sysrole role) {
		return dao.detail(role);
	}

	public Integer saveright(String roleid, String[] funids) {
		return dao.saveright(roleid, funids);
	}

	public List<Sysrole> allList() {
		
		return dao.allList();
	}

	public Sysrole findRole(Sysrole role) {
		
		return dao.findRole(role);
		
	}

	public Integer editRole(Sysrole role) {
		
		return dao.editRole(role);
		
	}

}
